package com.zhuo.common.config;

import com.zhuo.common.enums.StorageType;
import com.zhuo.common.service.aliyun.AliyunOssProperties;
import com.zhuo.common.service.tencent.TencentCosProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "storage")
@Data
public class StorageProperties {
    /**
     * 类型
     */
    private StorageType type;

    /**
     * 是否自动加日期前缀 yyyy/MM/dd
     */
    private Boolean autoDatePrefix = true;

    /**
     * 是否在文件名中使用 UUID
     */
    private Boolean autoUseUUID = true;

    /**
     * sts相关配置
     */
    private StsProperties sts;

    /**
     * 各存储服务专属配置
     **/
    private TencentCosProperties cos;
//    private MinioProperties minio;
//    private AliyunOssProperties oss;
//    private LocalStorageProperties local;

}
